<?php
request::set("filterfield", "category_id");
request::set("filteron", request::get("id"));
$req = new request(array("module" => "element", "action" => "table"));
module::load($req, css::FLOAT_RIGHT);
?>

<div class="section">
	<h1>Category detail</h1>
	<div class="toolbar">
		<a class="back" href="/category/table">&laquo; overview</a>
		<?php echo html::button('edit', '/category/edit/?id='.request::get("id")); ?>
		<?php echo html::button('delete', '/category/delete/?id='.request::get("id"), array("class" => "cancel")); ?>	
	</div>
	<div>
		<?php echo document::getInstance()->contents["category_detail"]; ?>
	</div>
</div>